﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace Asomy.View
{
    class Input
    {
        public bool m_zoomIn = false;
        private Key key_zoomIn = Key.OemPlus;

        public bool m_zoomOut = false;
        private Key key_zoomOut = Key.OemMinus;
        
        /// <summary>
        /// Sets the keys user pressed to true
        /// </summary>   
        public void SetKeys(KeyEventArgs e)
        {
            if (e.Key == key_zoomIn)
            {
                m_zoomIn = true;
            }

            if (e.Key == key_zoomOut)
            {
                m_zoomOut = true;
            }
        }

        /// <summary>
        /// Sets the keys user let go off to false
        /// </summary>        
        public void UnsetKeys(KeyEventArgs e)
        {
            if (e.Key == key_zoomIn)
            {
                m_zoomIn = false;
            }

            if (e.Key == key_zoomOut)
            {
                m_zoomOut = false;
            }
        }

    }
}
